package app

import (
	"github.com/gin-gonic/gin"
	"xy_api/pkg/config"
	"xy_api/router"
)

func StartHttp() {
	app := gin.Default()
	//注册路由
	router.RegisterApiRoutes(app)
	//初始化服务
	SetupPool()
	//启动服务设置端口
	app.Run(":" + config.GetString("app.port"))
}
